package com.transport.service.impl;

import com.transport.service.TestService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service(version = "1.0.0",interfaceClass = TestService.class)
public class TestServiceImpl implements TestService {
    @Override
    public String test() {

        String ip = RpcContext.getContext().getAttachment("ip");
        System.out.println(ip);

        return "test";
    }
}
